<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:r="http://richfaces.org">   
    <h:form id="formMenu">

        <r:panelMenu style="width:200px"   >
            <r:panelMenuGroup label="Group 1">
                <r:panelMenuItem label="Item 1.1" >
                    <f:param name="current" value="Item 1.1"/>
                </r:panelMenuItem>
                <r:panelMenuItem label="Item 1.2" >
                    <f:param name="current" value="Item 1.2"/>
                </r:panelMenuItem>
                <r:panelMenuItem label="Item 1.3" >
                    <f:param name="current" value="Item 1.3"/>
                </r:panelMenuItem>
            </r:panelMenuGroup>
            <r:panelMenuGroup label="Group 2">
                <r:panelMenuItem label="Item 2.1" >
                    <f:param name="current" value="Item 2.1"/>
                </r:panelMenuItem>
                <r:panelMenuItem   label="Item 2.2" >
                    <f:param name="current" value="Item 2.2"/>
                </r:panelMenuItem>
                <r:panelMenuItem label="Item 2.3" >
                    <f:param name="current" value="Item 2.3"/>
                </r:panelMenuItem>
                <r:panelMenuGroup label="Group 2.4">
                    <r:panelMenuItem label="Item 2.4.1" >
                        <f:param name="current" value="Item 2.4.1"/>
                    </r:panelMenuItem>
                    <r:panelMenuItem label="Item 2.4.2" >
                        <f:param name="current" value="Item 2.4.2"/>
                    </r:panelMenuItem>
                    <r:panelMenuItem label="Item 2.4.3" >
                        <f:param name="current" value="Item 2.4.3"/>
                    </r:panelMenuItem>
                </r:panelMenuGroup>
                <r:panelMenuItem label="Item 2.5" >
                    <f:param name="current" value="Item 2.5"/>
                </r:panelMenuItem>
            </r:panelMenuGroup>
            <r:panelMenuGroup label="Group 3">
                <r:panelMenuItem label="Item 3.1" >
                    <f:param name="current" value="Item 3.1"/>
                </r:panelMenuItem>
                <r:panelMenuItem label="Item 3.2" >
                    <f:param name="current" value="Item 3.2"/>
                </r:panelMenuItem>
                <r:panelMenuItem label="Item 3.3" >
                    <f:param name="current" value="Item 3.3"/>
                </r:panelMenuItem>
            </r:panelMenuGroup>
        </r:panelMenu>

    </h:form>
</ui:composition>